﻿using TraumaCenterSystem.ServiceReference1;
using TraumaCenterSystem.TraumaCenterManage;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace TraumaCenterSystem.Areas.TraumaCenter.Controllers
{
    public class PathwayController : BaseController
    {
        static string PathwayID = string.Empty;
        // GET: /TraumaCenter/Pathway/
        public static TraumaCenterManageSoapClient service = new TraumaCenterManageSoapClient();
        public ActionResult Index(string id, string age, string sex, string disease)
        {
            PathwayID = id;
            return View();
        }
        public ActionResult Index1(string id, string age, string sex, string disease)
        {
            return View();
        }
        public JsonResult Action(string Pid)
        {
            var Data = service.GetTimeline(PathwayID);
            if (Data.S == true)
            {
                return JSON(Data.D);
            }
            return JSON("");
        }
    }
}
